//
//  CYHSubjectCell.m
//  Cat
//
//  Created by dllo on 15/12/2.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "CYHSubjectCell.h"

@implementation CYHSubjectCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
//        self.backView = [[UIView alloc] init];
//        self.backView.backgroundColor = [UIColor whiteColor];
//        [self.contentView addSubview:self.backView];
        
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
//    [self.backView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.contentView.mas_left).with.offset(5);
//        make.right.equalTo(self.contentView.mas_right).with.offset(-5);
//        make.top.equalTo(self.contentView.mas_top).with.offset(5);
//        make.bottom.equalTo(self.contentView.mas_bottom).with.offset(-5);
//    }];
    
    [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.and.right.and.top.and.bottom.equalTo(self.contentView).with.offset(0);
    }];
}

@end
